

  Page({
    data: {
      is_shoucang:0,
      goods_info: { goods_id: 1, goods_title: "商品标题1", goods_price: '100', goods_yunfei: 0, goods_kucun: 100, goods_xiaoliang: 1, content:'商品介绍详情商品介绍详情商品介绍详情商品介绍详情商品介绍详情商品介绍详情商品介绍详情'},
      goods_img: [
        {'img': 'https://m.360buyimg.com/mobilecms/s843x843_jfs/t1/98757/26/2572/231342/5dd346b2E950cf59a/77101a9cd7b10d27.jpg!q70.dpg.webp'},
        {'img': 'https://m.360buyimg.com/mobilecms/s843x843_jfs/t1/80162/30/15679/182708/5dd346b2E6e662508/fff2bbd02d805755.jpg!q70.dpg.webp' },
        {'img': 'https://m.360buyimg.com/mobilecms/s843x843_jfs/t1/99430/34/16048/110282/5e75e830E7ba1d593/357956ba91d3bf24.png.webp' },
        {'img': 'https://m.360buyimg.com/mobilecms/s750x750_jfs/t1/111348/32/10673/200483/5eee2d6cE94433b34/8e74d235febfb6ed.jpg!q80.dpg.webp' },
        ],
      indicatorDots: true,
      autoplay: true,
      interval: 5000,
      duration: 1000,
      pjDataList: [{ headpic: 'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg', author: '张三', add_time: '2018-06-01', content:'好评好评，真实太好了!'},
        { headpic: 'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg', author: '张三', add_time: '2018-06-01', content: '好评好评，真实太好了!' }
      ],//评价数据
    },
   
   
    previewImage: function (e) {
      var current = e.target.dataset.src;
      var href = this.data.imghref;
      var goodsimg = this.data.goods_img;
      var imglist = [];
      for (var i = 0; i < goodsimg.length; i++) {
        imglist[i] = href + goodsimg[i].img
      }
      wx.previewImage({
        current: current, // 当前显示图片的http链接  
        urls: imglist// 需要预览的图片http链接列表  
      })
    },
   
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
    
    },
  
  })

 